package com.gc.server.enums;

import lombok.Getter;

import java.util.Arrays;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Mar 12 15:17:51 CST 2020
 */
@Getter
public enum LevelEnum {


    CUSTOM(0, "会员")
    ,
    SHOP(1,"药店店员"),

    BUS(2,"终端代表"),

    MANAGER(3,"区域主管"),

    MANAGER1(4,"区域经理"),

    MANAGER2(5,"区域总监"),

    MANAGER3(6,"总经理");


    int index;
    String value;

    LevelEnum(int index,String value) {
        this.index = index;
        this.value = value;
    }

    public static String[] names(){
        return Arrays.stream(LevelEnum.values()).map(m->m.getValue()).toArray(String[]::new);
    }
    public static String indexOf(int idx) {
        return LevelTypeEnum.values()[idx].getValue();
    }

}
